package com.hspedu.try_;

/**
 * @author sp
 * @version 0.1
 */
public class TryCatchDetail {
    public static void main(String[] args) {

        //Ctrl + Alt + T
        try {
            String str = "lalala";
            int a = Integer.parseInt(str);
            System.out.println("数字: " + a);
        } catch (NumberFormatException e) {
            //e.printStackTrace();
            System.out.println("异常信息 = " + e.getMessage());
        }finally {
            System.out.println("finally代码块被执行");
        }

        System.out.println("程序继续");
    }
}
